﻿
@{
    ViewBag.Title = "Addition";
    Layout = "~/Views/Shared/_LayoutHome.cshtml";
}
@* 布局样式 *@
<link href="~/Home/css/grid.css" rel="stylesheet" />
<link href="~/Home/css/Home.css" rel="stylesheet" />
<hr />
<div class="fq grid">
    <div class="fwimage grid-cell-1">
        <div class="imageweizhi">
            <img src="~/UploadFile/@ViewBag.pic" />
        </div>
    </div>
    <div class="fwxx grid-cell-1">
        <div class="fwxxtitle">
            房屋信息添加
        </div>
        <div class="hang">
            用户姓名：@Html.TextBox("Name")
        </div>
        <form action="Addition" method="post" enctype="multipart/form-data">
            <div class="hang">
                联系电话：@Html.TextBox("Telephone")
            </div>
            <div class="hang">
                房屋种类：@Html.DropDownList("Type", new SelectList(new[] { "楼房", "平房", "别墅", "其他" }))
            </div>
            <div class="hang">
                月租金额：@Html.TextBox("Monthly")
            </div>
            <div class="hang">
                房屋户型：@Html.DropDownList("Houses", new SelectList(new[] { "一室两厅", "独门别院", "一室一厅", "三室一厅", "单间" }))
            </div>
            <div class="hang">
                建筑面积：@Html.TextBox("Area")
            </div>
            <div class="hang">
                装修情况：@Html.DropDownList("Renovation", new SelectList(new[] { "简单装修", "中档装修", "高档装修", "无装修" }))
            </div>

            <div class="outer">
                房屋地址：
                <select name="province" id="province">
                    <option value="请选择">请选择</option>
                </select>
                <select name="city" id="city">
                    <option value="请选择">请选择</option>
                </select>
                <select name="town" id="town">
                    <option value="请选择">请选择</option>
                </select>
            </div>
            <div class="hang">
                房屋情况：@Html.DropDownList("Situation", new SelectList(new[] { "未出租", "未出售", "已出租", "已出售" }))
            </div>
            <div class="hang">
                房屋信息类型：@Html.DropDownList("Information", new SelectList(new[] { "房屋出租", "房屋出售", "房屋合租", "房屋求租", "房屋求购" }))
            </div>
            <div class="hang">
                <text>选择上传文件:</text><input type="file" name="files" value="" /><input type="submit" name="name" value="上传" />
            </div>
            <div class="hang">
                <input type="submit" name="name" value="提交信息" />
            </div>
        </form>
    </div>
</div>
@* 地区选择js *@
<script src="~/Home/js/area.js"></script>
<script src="~/Home/js/jquery-1.11.3.min.js"></script>
<script src="~/Home/js/select.js"></script>